import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app_05/http/nets.dart';
import 'package:flutter_app_05/utils/MyTheme.dart';
import 'package:flutter_app_05/widget/sdk_extens.dart';
class  MoreDetilPage extends StatefulWidget{
  String img;
  MoreDetilPage({this.img});
@override
MoreDetilPageState createState() => new MoreDetilPageState();


}

class MoreDetilPageState extends State<MoreDetilPage>{
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    print(RequestPaths.urlBase+"/"+widget.img);
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      resizeToAvoidBottomInset: false,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: MyTheme(context).getColor("tab_bg"),
        shadowColor: Colors.transparent,
        brightness: MyTheme(context).getCurrentTheme()==1?Brightness.light:Brightness.dark,
        leading: IconButton(
            color: MyTheme(context).getColor('colorBlack'),
            icon: Icon(Icons.arrow_back_ios),
            onPressed: () {
              Navigator.pop(context);
            }),
      ),
      body: Container(
        margin: EdgeInsets.only(top: 10.0),
        height: 120.0,
        child: widget.img==null?Container(child: Text("加载中..."),):
        Center(child: (RequestPaths.urlBase+"/"+widget.img).getImage(fit:BoxFit.cover,width: 120.0,height: 120.0),),

      ),
    );
  }

}